<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head >
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta charset="UTF-8">
    <title>Title</title>
    <link th:href="@{/local/css/orders.css}" rel="stylesheet">
    <link  th:href="@{/local/css/page.css}"  rel="stylesheet">
</head>

<body>

<div id="top" th:include="top.html::top"></div>

<div id="middle">
    <div id="left" th:include="left.html::left"></div>
    <div id="right">
        <div id="msg" th:text="${msg}"></div>
        <hr>
<!--        <a th:href="@{/admin2/gotoAddOrders}">添加订单</a>-->
        <table>
            <tr>
                <th>订单ID</th>
                <th>用户</th>
                <th>下单时间</th>
                <th>总计</th>
                <th>操作</th>
            </tr>
            <tr th:each="orders,stat:${ordersListPage.list}" th:class="${stat.odd}?'bg2':''">
                <td th:text="${orders.getOid()}"></td>
                <td th:text="${orders.getUid()}"></td>
                <td th:text="${#calendars.format(orders.getOtime(),'yyyy-MM-dd')}"></td>
                <td th:text="${orders.getOtotal()}"></td>
                <td>
                    <a th:href="@{/admin2/getXq/} + ${orders.getOid()}">详情</a>
                    <a th:href="@{/admin2/delOrders/} + ${orders.getOid()}">删除</a>
                    <a th:href="@{/admin2/orders/} + ${orders.getOid()}">编辑</a>
                </td>
            </tr>

        </table>

        <div th:include="page-orders.html::myPage(${ordersListPage},orders)"></div>


    </div>
</div>

<div id="bottom" th:include="bottom.html::bottom"></div>

</body>
</html>